package com.TeaManage.bean;

import java.util.Date;

public class Inventory {
    private Integer inventory_id;
    // 茶叶ID
    private Integer tea_id;
    // 仓库ID
    private Integer warehouse_id;
    // 数量
    private Double quantity;
    // 最低库存
    private Double min_stock;
    // 最高库存
    private Double max_stock;
    // 生产日期
    private Date production_date;
    // 保质期（天数等，需结合业务确认含义）
    private Integer shelf_life;

    public Inventory() {
    }

    public Inventory(Integer inventory_id, Integer tea_id, Integer warehouse_id, Double quantity, Double min_Stock, Double max_stock, Date production_date, Integer shelf_life) {
        this.inventory_id = inventory_id;
        this.tea_id = tea_id;
        this.warehouse_id = warehouse_id;
        this.quantity = quantity;
        this.min_stock = min_Stock;
        this.max_stock = max_stock;
        this.production_date = production_date;
        this.shelf_life = shelf_life;
    }

    public Integer getInventory_id() {
        return inventory_id;
    }

    public void setInventory_id(Integer inventory_id) {
        this.inventory_id = inventory_id;
    }

    public Integer getTea_id() {
        return tea_id;
    }

    public void setTea_id(Integer tea_id) {
        this.tea_id = tea_id;
    }

    public Integer getWarehouse_id() {
        return warehouse_id;
    }

    public void setWarehouse_id(Integer warehouse_id) {
        this.warehouse_id = warehouse_id;
    }

    public Double getQuantity() {
        return quantity;
    }

    public void setQuantity(Double quantity) {
        this.quantity = quantity;
    }

    public Double getMin_stock() {
        return min_stock;
    }

    public void setMin_stock(Double min_stock) {
        this.min_stock = min_stock;
    }

    public Double getMax_stock() {
        return max_stock;
    }

    public void setMax_stock(Double max_stock) {
        this.max_stock = max_stock;
    }

    public Date getProduction_date() {
        return production_date;
    }

    public void setProduction_date(Date production_date) {
        this.production_date = production_date;
    }

    public Integer getShelf_life() {
        return shelf_life;
    }

    public void setShelf_life(Integer shelf_life) {
        this.shelf_life = shelf_life;
    }

    @Override
    public String toString() {
        return "Inventory{" +
                "inventory_id=" + inventory_id +
                ", tea_id=" + tea_id +
                ", warehouse_id=" + warehouse_id +
                ", quantity=" + quantity +
                ", min_stock=" + min_stock +
                ", max_Stock=" + max_stock +
                ", production_date=" + production_date +
                ", shelf_life=" + shelf_life +
                '}';
    }
}
